﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using VAdvantage.Apps;
using System.Data;
using VAdvantage.DataBase;
using System.Windows.Data;
using VAdvantage.Utility;
using System.IO;
using System.Runtime.InteropServices.Automation;


using System.Text;
using VAdvantage.ProcessEngine;
using VAdvantage.Model;
using System.Threading;






using System.Globalization;
using System.Windows.Browser;
using System.Collections;

using SilverlightDesktop.Controls;

namespace VAdvantage.Apps.AForms.BPInfo
{
    //public partial class BPInfo : ChildWindow
    public partial class BPInfo : SilverlightDesktop.Controls.Form
    {
        public BPInfo(int C_BPartner_ID, int AD_Org_ID)
        {
            InitializeComponent();
            Type type = Envs.GetC1ModuleType("VC1Module.UI.BPInfo.BPInfo");
            if (type != null)
            {
                System.Reflection.ConstructorInfo constructor = null;
                try
                {
                    constructor = type.GetConstructor(new Type[] { typeof(int), typeof(int), typeof(Form) });
                }
                catch (Exception e)
                {
                    //log.Warning("No transaction Constructor for " + type.FullName + " (" + e.ToString() + ")");
                }
                if (constructor != null)
                {
                    try
                    {

                        object ig = constructor.Invoke(new object[] { C_BPartner_ID, AD_Org_ID, this });
                        container.Children.Add(ig as UIElement);
                    }
                    catch
                    {

                    }
                }
                else
                {
                    throw new Exception("No Std Constructor");
                }
            }

        }
    }
}